package edu.gdkm.demo6.demo1;

public class Circular_cylinder extends Three_dimension{
    public Circular_cylinder(double r, double h) {
        super(r, h);
    }

    public Circular_cylinder() {
    }

    @Override
    public double superficial_area() {
        return this.getR() * this.getR() * Math.PI * 2+ this.getR() * this.getH() * Math.PI *2;
    }

    @Override
    public double volume() {
        return Math.PI * this.getR()*this.getR()*this.getH();
    }
}
